package net.borlis.sample.service.repositories.common;

import net.borlis.sample.service.entities.common.BaseEntityInterface;

import java.util.List;

/**
 * Created by alexander.borlis on 15.07.2014.
 */
public interface IAbstractDynamixRepository<T extends BaseEntityInterface> {

    T create(T t);

    T find(Long id);

    List<T> findAll();

    T update(T t);

    void delete(T t);

    void delete(Long id);

    void deleteWithoutUpdate(T t);

    void deleteWithoutUpdate(Long id);

    void deleteAll();
}
